<template>
  <div>
    <van-nav-bar
      title="隐私"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
     <van-cell center title="加我为朋友时需要验证">
      <template #right-icon>
        <van-switch v-model="checked" size="24"  />
      </template>
    </van-cell>
    <van-cell title="添加我的方式" is-link class="addMe"/>
    <van-cell title="特别关注" is-link class="attention"/>
    <van-cell title="授权管理" is-link class="authorization"/>
  </div>
</template>

<script>
export default {
  name: "Privacy",
  data(){
      return{
          checked:true
      }
  },
  methods: {
    onClickLeft() {
      this.$router.back(); //返回按钮
    },
  },
};
</script>

<style scoped>
.addMe{
    margin-bottom: 0.3rem;
}
.attention{
     margin-bottom: 0.3rem;
}
</style>